package javango.core;

import java.util.ArrayList;
import java.util.List;

import javango.http.HttpRequest;
import javango.http.SimpleHttpResponse;

public class BaseUrls implements Urls {
	
	public SimpleHttpResponse index(HttpRequest request) {
		return new SimpleHttpResponse("Javango is running, please configure your Urls.");
	}
	
	UrlFactory factory;
	public BaseUrls(UrlFactory factory) {
		super();
		this.factory = factory;
	}
	
	public List<Url> getUrlPatterns() {
		List<Url> l = new ArrayList<Url>();
		l.add(factory.regUrl("^.*$", BaseUrls.class, "index"));
		return l;
	}


}
